package com.oscar.web.config;

import org.apache.spark.network.client.TransportClient;
import org.joda.time.Days;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
import org.springframework.data.redis.serializer.StringRedisSerializer;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.InetAddress;

@Configuration
public class RedisConfig {

    private String redisHost;

    @Bean(name = "jedis")
    public RedisProperties.Jedis getRedisClient() {
        RedisProperties.Jedis jedis = new RedisProperties.Jedis();
        return jedis;
    }
}
